package com.adnaan.backend.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "storage")
public class StorageConfig {
    private String type; // local/qiniu/aliyun
    private Local local;
    private Qiniu qiniu;
    private Aliyun aliyun;

    @Data
    public static class Local {
        private String path;
        private String domain;
    }

    @Data
    public static class Qiniu {
        private String accessKey;
        private String secretKey;
        private String bucket;
        private String domain;
    }

    @Data
    public static class Aliyun {
        private String accessKeyId;
        private String accessKeySecret;
        private String bucket;
        private String endpoint;
        private String domain;
    }
} 